package com.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.util.Date;

@Data
public class Food {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    private String foodName;
    private Integer star;
    private String foodDesc;
    private Date createTime;
    private Date updateTime;
    private String imgUrl;
    private String type;

    public Food() {
    }

    public Food(Integer id, String foodName, Integer star, String foodDesc, Date createTime, Date updateTime, String imgUrl,String type) {
        this.id = id;
        this.foodName = foodName;
        this.star = star;
        this.foodDesc = foodDesc;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.imgUrl = imgUrl;
        this.type = type;
    }
}
